<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    var name=prompt("请输入名字：");
    document.write(name);
</script>

</body>
</html>